package com.carkeeper.shop.service.impl;


import com.carkeeper.shop.dao.StoreDetailMapper;
import com.carkeeper.shop.pojo.StoreDetail;
import com.carkeeper.shop.service.StoreDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StoreDetailServiceImpl implements StoreDetailService {

    @Autowired
    private StoreDetailMapper storeDetailMapper;


    @Override
    public void addStoreDetail(StoreDetail storeDetail) {
        storeDetailMapper.insertSelective(storeDetail);
    }

    @Override
    public StoreDetail findStoreDetailById(String id) {
        return storeDetailMapper.selectByPrimaryKey(id);
    }

    @Override
    public void updateStoreDetail(StoreDetail storeDetail) {
        storeDetailMapper.updateByPrimaryKey(storeDetail);
    }
}
